
import { accountEn, accountZh } from "./account/index"

import {createI18n} from "vue-i18n"


const messages = {
    en: {
        ...accountEn
    },
    zh: {
        ...accountZh
    }
}



const i18n = createI18n({
    legacy: false,
    //全局使用t函数
    globalInjection: true,
    locale: window.localStorage.getItem("langeage") || 'zh', // 首先从缓存里拿，没有的话就用浏览器语言，
    messages,
})

export default i18n

